<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@page import="com.dts.project.dao.ProductMasterDao"%>
<%@page import="com.dts.core.util.CoreList"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.yourcompany.struts.form.ProductMasterForm"%>
<%@page import="com.dts.project.dao.CountryMasterDao"%>
<%@page import="com.yourcompany.struts.form.CountryMasterForm"%>
 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html>
<head>
<style>
body,td,th {
	color: #B00606;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style9 {color: #FFFFFF}
body {
	background-color: #003333;
}
</style>

<title>e-PostOffice</title>
<script type="text/javascript" src="scripts/moveclock.js"></script>
<script language="JavaScript" src="scripts/gen_validatorv31.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" src="scripts/ts_picker.js"></script>
<script language="JavaScript1.1" src="scripts/pass.js">


</script> <script type="text/javascript" src="scripts/image.js"> </script>
 <script type="text/javascript" src="scripts/general.js"> </script>
 <script type="text/javascript" src="scripts/adi.js"> </script>
 <script type="text/javascript" src="scripts/form_validation.js"> </script>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>
<table width="750" align="center" bgcolor="#B00606">
<tr><td>
<img src="images/epostoffice.gif" width="780"></td>
</tr>
<tr>
   <td bgcolor="#E16A00">
   <jsp:include page="Adminoptions.jsp"/>
   </td></tr>
<tr><td>
<%--<div align="center">--%>
<%--<table bgcolor="#B00606" width="750" align="center">--%>
<%--<tr>--%>
<%--   <td><jsp:include page="Template.html"/></td></tr></table></div>--%>
<div align="center">
<table bgcolor="#B00606" width="770" align="center" height="70">
<tr>
   <td>
    <marquee><font color="#ECEDF3"><h1>WELCOME TO THE Admin Site</h1></marquee>
<marquee> <img src="images/IndianStamps.gif" height="100"><img src="images/ist2_1276217-vintage-indian-stamps-ephemera.jpg" height="100"><img src="images/images.jpeg" height="100"><img src="images/images1.jpeg" height="100"><img src="images/stamp price.jpg" height="100"><img src="images/2007-03-28-sw-stamps.jpg" height="100"><img src="images/6a00d83452795369e200e5506182958834-500wi.jpg" height="100"><img src="images/stamp-avocet.JPG" height="100"></marquee>
 
     <p align="center">
    <h2><center><font color="white"><b>Items Registeration Form</b></font></center> </h2>
    <%if(request.getParameter("status")!=null){ %>
	<%=request.getParameter("status") %><%} %>
	
		<form action="productDetailsAction.do" name="register">
		<table border="1" align="center" bordercolor="#FFFFFF">
			<tr><td bgcolor="#666633"><div align="center"><font color="white"><b>Country Name :</b></font> </div></td>
			<td bgcolor="#666633"><div align="center"> 
			  <select name="countryId"/>
			  <option value="">---Select Any One----</option>
			  
			    <%String storepath=request.getRealPath("/images");
			CountryMasterDao dao1=new CountryMasterDao();
			CoreList cl1=dao1.ViewCountryMaster(storepath);
			Enumeration en1=cl1.elements();
			while(en1.hasMoreElements())
			{
			CountryMasterForm form1=(CountryMasterForm)en1.nextElement();
			 %>
			   <option value="<%=form1.getCountryId() %>"><%=form1.getCountryName() %></option>
			   <%} %>
			  </select> 
			  </div></td></tr>
			 <tr><td bgcolor="#666633"><div align="center"><font color="white"><b>Product Name :</b></font> </div></td>
			 <td bgcolor="#666633"><div align="center">
			   <select name="productId">
			     <option value="">---Select Any One----</option>
			  
			   <%ProductMasterDao dao=new ProductMasterDao();
			CoreList cl=dao.ViewProductMaster();
			Enumeration en=cl.elements(); 
			while(en.hasMoreElements())
			{
			ProductMasterForm form=(ProductMasterForm)en.nextElement();
			%>
			   <option value="<%=form.getProductId() %>"><%=form.getProductName()%></option>
			   <%} %>
			   </select> 
			    </div></td></tr>
			<tr><td bgcolor="#666633"><div align="center"><font color="white"><b>ItemName :</b></font> </div></td>
			<td bgcolor="#666633"><div align="center">
			  <input type=text name="itemName"/> 
			  </div></td></tr>
					<tr><td bgcolor="#666633"><div align="center"><font color="white"><b>Item Images</b></font> </div></td>
			<td bgcolor="#666633"><div align="center">
			  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=file name="itemLaunchVideo"/>
			  </div></td></tr> 
			
					<tr><td bgcolor="#666633"><div align="center"><font color="white"><b>Item Lanuch Video :</b></font> </div></td>
					<td bgcolor="#666633"><div align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					  <input type=file name="itemImage"/> 
					  </div></td></tr>
	 
			<tr><td bgcolor="#666633"><div align="center"><font color="white"><b>ItemDesc :</b></font> </div></td>
			<td bgcolor="#666633"><div align="center">
			  <input type=text name="itemDesc"/> 
			  </div></td></tr>
		
			<tr><td bgcolor="#666633"><div align="center"><font color="white"><b>Price : </b></font></div></td>
			<td bgcolor="#666633"><div align="center">
			  <input type=text name="price"/>
			  </div></td></tr> 
		
			<tr><td bgcolor="#666633"><div align="center"></div></td>
			<td bordercolor="#FFFFFF" bgcolor="#666633"><div align="center">
			  <input type=submit name="Register" value="Register"/> <input type=reset name="Register" value="Reset"/>
			  </div></td></tr></table>
		</form>
    
    <script language="JavaScript" type="text/javascript">
    
//You should create the validator only after the definition of the HTML form
  var frmvalidator  = new Validator("register");
   frmvalidator.addValidation("countryId","dontselect=0");
 frmvalidator.addValidation("productId","dontselect=0");
 
  frmvalidator.addValidation("itemName","req","Please enter Item Name");
  frmvalidator.addValidation("itemName","maxlen=20",	"Max length for ItemName is 20");
  frmvalidator.addValidation("itemName","alpha"," Item Name Alphabetic chars only");
  
  frmvalidator.addValidation("itemDesc","req","Please enter Item Desc");
  
  frmvalidator.addValidation("price","req","Please enter Item Price");
  
   
   frmvalidator.addValidation("dob","req","Please enter your DOB"); 
  
   frmvalidator.addValidation("itemLaunchVideo","req","Please requierd Item Launch Video"); 
    
 </script>
  
    
   <center>
     
     
     </center>
    
     
     
     </td></tr></table>
          <p>&nbsp;</p>
               <p>&nbsp;</p>
                    <p>&nbsp;</p>
                         
           <p>&nbsp;</p>
               <p>&nbsp;</p>
                    <p>&nbsp;</p>
                         
           <p>&nbsp;</p>
             
                         
                              
     <p>&nbsp;</p></div>


</body></html>